<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Aestate: aestate/ajson/sim/__init__.py Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Aestate
   &#160;<span id="projectnumber">1.0.5</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_374ee6e3281d8312d956f1f155302869.html">aestate</a></li><li class="navelem"><a class="el" href="dir_750b3d80577cce9b9bed1e25acfa02b9.html">ajson</a></li><li class="navelem"><a class="el" href="dir_0ff9c0a1878d33b60c2e08a209ca7aa8.html">sim</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">__init__.py</div>  </div>
</div><!--header-->
<div class="contents">
<a href="ajson_2sim_2____init_____8py.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"><a class="line" href="namespaceaestate_1_1ajson_1_1sim.html">    1</a></span>&#160;<span class="keyword">from</span> __future__ <span class="keyword">import</span> absolute_import</div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160; </div>
<div class="line"><a name="l00003"></a><span class="lineno"><a class="line" href="namespaceaestate_1_1ajson_1_1sim.html#a55eea1219c12706272bf45865cdf7ae0">    3</a></span>&#160;__version__ = <span class="stringliteral">&#39;1.0.0&#39;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"><a class="line" href="namespaceaestate_1_1ajson_1_1sim.html#a0dcce51af3cf33286e56d35d82cae8f5">    4</a></span>&#160;__all__ = [</div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;    <span class="stringliteral">&#39;JSONDecoder&#39;</span>, <span class="stringliteral">&#39;JSONDecodeError&#39;</span>, <span class="stringliteral">&#39;JSONEncoder&#39;</span>,</div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;    <span class="stringliteral">&#39;OrderedDict&#39;</span>, <span class="stringliteral">&#39;RawJSON&#39;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;]</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160; </div>
<div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="namespaceaestate_1_1ajson_1_1sim.html#a74385a63ab55cd7f7e6ef07d251a6aa1">    9</a></span>&#160;__author__ = <span class="stringliteral">&#39;CACode &lt;cacode@163.com&gt;&#39;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160; </div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="keyword">from</span> .errors <span class="keyword">import</span> JSONDecodeError</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="keyword">from</span> .raw_json <span class="keyword">import</span> RawJSON</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="keyword">from</span> .decoder <span class="keyword">import</span> JSONDecoder</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keyword">from</span> .encoder <span class="keyword">import</span> JSONEncoder, JSONEncoderForHTML</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160; </div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160; </div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="namespaceaestate_1_1ajson_1_1sim.html#a1f6edd68f5fe9ad834fc5fb039a76f49">   17</a></span>&#160;<span class="keyword">def </span><a class="code" href="namespaceaestate_1_1ajson_1_1sim.html#a1f6edd68f5fe9ad834fc5fb039a76f49">_import_OrderedDict</a>():</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;    <span class="keyword">import</span> collections</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    <span class="keywordflow">try</span>:</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;        <span class="keywordflow">return</span> collections.OrderedDict</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <span class="keywordflow">except</span> AttributeError:</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;        <span class="keyword">from</span> . <span class="keyword">import</span> ordered_dict</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html">ordered_dict.OrderedDict</a></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160; </div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="namespaceaestate_1_1ajson_1_1sim.html#a336b0c0f6b3ac3ef032027178f2fbfac">   26</a></span>&#160;OrderedDict = <a class="code" href="namespaceaestate_1_1ajson_1_1sim.html#a1f6edd68f5fe9ad834fc5fb039a76f49">_import_OrderedDict</a>()</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160; </div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="namespaceaestate_1_1ajson_1_1sim.html#acc55b1043e343f33010f2929c53fb9f8">   29</a></span>&#160;<span class="keyword">def </span><a class="code" href="namespaceaestate_1_1ajson_1_1sim.html#acc55b1043e343f33010f2929c53fb9f8">_import_c_make_encoder</a>():</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="keywordflow">try</span>:</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        <span class="keyword">from</span> ._speedups <span class="keyword">import</span> make_encoder</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;        <span class="keywordflow">return</span> make_encoder</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="keywordflow">except</span> ImportError:</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        <span class="keywordflow">return</span> <span class="keywordtype">None</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="namespaceaestate_1_1ajson_1_1sim.html#acda18f0c6b657386dbd3e28ac30a2794">   37</a></span>&#160;_default_encoder = <a class="code" href="classaestate_1_1ajson_1_1sim_1_1encoder_1_1_j_s_o_n_encoder.html">JSONEncoder</a>(</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    skipkeys=<span class="keyword">False</span>,</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    ensure_ascii=<span class="keyword">True</span>,</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    check_circular=<span class="keyword">True</span>,</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    allow_nan=<span class="keyword">True</span>,</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    indent=<span class="keywordtype">None</span>,</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    separators=<span class="keywordtype">None</span>,</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    encoding=<span class="stringliteral">&#39;utf-8&#39;</span>,</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    default=<span class="keywordtype">None</span>,</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    use_decimal=<span class="keyword">True</span>,</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    namedtuple_as_object=<span class="keyword">True</span>,</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    tuple_as_array=<span class="keyword">True</span>,</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    iterable_as_array=<span class="keyword">False</span>,</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    bigint_as_string=<span class="keyword">False</span>,</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    item_sort_key=<span class="keywordtype">None</span>,</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    for_json=<span class="keyword">False</span>,</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    ignore_nan=<span class="keyword">False</span>,</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    int_as_string_bitcount=<span class="keywordtype">None</span>,</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;)</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="namespaceaestate_1_1ajson_1_1sim.html#afe61c26b8d4a0d19f5089be87c833373">   57</a></span>&#160;_default_decoder = <a class="code" href="classaestate_1_1ajson_1_1sim_1_1decoder_1_1_j_s_o_n_decoder.html">JSONDecoder</a>(encoding=<span class="keywordtype">None</span>, object_hook=<span class="keywordtype">None</span>,</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;                               object_pairs_hook=<span class="keywordtype">None</span>)</div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict_html"><div class="ttname"><a href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html">aestate.ajson.sim.ordered_dict.OrderedDict</a></div><div class="ttdef"><b>Definition:</b> <a href="ordered__dict_8py_source.html#l00009">ordered_dict.py:9</a></div></div>
<div class="ttc" id="anamespaceaestate_1_1ajson_1_1sim_html_acc55b1043e343f33010f2929c53fb9f8"><div class="ttname"><a href="namespaceaestate_1_1ajson_1_1sim.html#acc55b1043e343f33010f2929c53fb9f8">aestate.ajson.sim._import_c_make_encoder</a></div><div class="ttdeci">def _import_c_make_encoder()</div><div class="ttdef"><b>Definition:</b> <a href="ajson_2sim_2____init_____8py_source.html#l00029">__init__.py:29</a></div></div>
<div class="ttc" id="aclassaestate_1_1ajson_1_1sim_1_1decoder_1_1_j_s_o_n_decoder_html"><div class="ttname"><a href="classaestate_1_1ajson_1_1sim_1_1decoder_1_1_j_s_o_n_decoder.html">aestate.ajson.sim.decoder.JSONDecoder</a></div><div class="ttdef"><b>Definition:</b> <a href="decoder_8py_source.html#l00281">decoder.py:281</a></div></div>
<div class="ttc" id="anamespaceaestate_1_1ajson_1_1sim_html_a1f6edd68f5fe9ad834fc5fb039a76f49"><div class="ttname"><a href="namespaceaestate_1_1ajson_1_1sim.html#a1f6edd68f5fe9ad834fc5fb039a76f49">aestate.ajson.sim._import_OrderedDict</a></div><div class="ttdeci">def _import_OrderedDict()</div><div class="ttdef"><b>Definition:</b> <a href="ajson_2sim_2____init_____8py_source.html#l00017">__init__.py:17</a></div></div>
<div class="ttc" id="aclassaestate_1_1ajson_1_1sim_1_1encoder_1_1_j_s_o_n_encoder_html"><div class="ttname"><a href="classaestate_1_1ajson_1_1sim_1_1encoder_1_1_j_s_o_n_encoder.html">aestate.ajson.sim.encoder.JSONEncoder</a></div><div class="ttdef"><b>Definition:</b> <a href="encoder_8py_source.html#l00109">encoder.py:109</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
